@echo off

echo 基本压力测试 - 测试多个坐标点
echo ============================

:: 测试坐标点列表
echo 测试1: 吉隆坡
echo curl "http://localhost:8080/api/geo/address?lon=101.6869&lat=3.1390"
curl "http://localhost:8080/api/geo/address?lon=101.6869&lat=3.1390"
echo.

echo 测试2: 北京
echo curl "http://localhost:8080/api/geo/address?lon=116.4074&lat=39.9042"
curl "http://localhost:8080/api/geo/address?lon=116.4074&lat=39.9042"
echo.

echo 测试3: 上海
echo curl "http://localhost:8080/api/geo/address?lon=121.4737&lat=31.2304"
curl "http://localhost:8080/api/geo/address?lon=121.4737&lat=31.2304"
echo.

echo 压力测试 - 5次连续请求同一坐标
echo ============================
for /l %%i in (1,1,5) do (
    echo 测试重复查询 %%i/5\    curl "http://localhost:8080/api/geo/address?lon=101.6869&lat=3.1390"
    echo.
)

echo 基准测试 - 10000次迭代
echo ============================
echo curl "http://localhost:8080/api/geo/benchmark?iterations=10000"
curl "http://localhost:8080/api/geo/benchmark?iterations=10000"
echo.

echo 测试完成！